package com.woniu.pojo;

import java.io.Serializable;

/**
 * direction
 * @author 
 */
public class Direction implements Serializable {
    /**
     * 方向id
     */
    private Integer dirno;

    /**
     * 课程名
     */
    private String dirname;

    private static final long serialVersionUID = 1L;

    public Integer getDirno() {
        return dirno;
    }

    public void setDirno(Integer dirno) {
        this.dirno = dirno;
    }

    public String getDirname() {
        return dirname;
    }

    public void setDirname(String dirname) {
        this.dirname = dirname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Direction other = (Direction) that;
        return (this.getDirno() == null ? other.getDirno() == null : this.getDirno().equals(other.getDirno()))
            && (this.getDirname() == null ? other.getDirname() == null : this.getDirname().equals(other.getDirname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDirno() == null) ? 0 : getDirno().hashCode());
        result = prime * result + ((getDirname() == null) ? 0 : getDirname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dirno=").append(dirno);
        sb.append(", dirname=").append(dirname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}